package cc.wanforme.chipmunity.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cc.wanforme.chipmunity.system.po.Reply;

/**
 * @author wanne
 * 2019年8月16日
 * 
 */
@Mapper
public interface ReplyMapper {
	
	Reply selectReply(Long id);
	
	List<Reply> listReplyByPassageId(Long passageId);
	
	List<Reply> listReplyByUserId(Long userId);
	
	void insertReply(Reply reply);
	
	void deleteReply(Long id);
	
	/** 根据id更新，不更新passageId，userId，number，replyTime */
	void updateReply(Reply reply);
	
}
